package com.lmpop.createIndex.searchModel;

import com.lmpop.frame.dao.JdbcDbm;
import com.lmpop.frame.util.Config;
import java.sql.Connection;

public class LinkInterf
{
  private Config config;
  private JdbcDbm jdbcDbm;

  public LinkInterf()
  {
    this.config = new Config();
    this.config.init("config.properties");
    this.jdbcDbm = new JdbcDbm();
  }

  public Connection getConnection() {
    return this.jdbcDbm.getConnection();
  }

  public String getConfigString(String key) {
    return this.config.getString(key);
  }

  public void createIndex(String file_path, String sql) {
    CreateModel createModel = new CreateModel();
    createModel.createIndex(file_path, sql);
  }
}